import SwiftUI

extension Font {
    init(uiFont : UIFont) {
        self = Font(uiFont as CTFont)
    }
    
    static let UIfont_super_bold = UIFont.systemFont(ofSize: 32, weight: .bold)
    static let UIfont_super_medium = UIFont.systemFont(ofSize: 32, weight: .medium)
    
    static let UIfont_h1_regular = UIFont.systemFont(ofSize: 20, weight: .regular)
    static let UIfont_h1_medium = UIFont.systemFont(ofSize: 20, weight: .medium)
    
    static let UIfont_h2_regular = UIFont.systemFont(ofSize: 18, weight: .regular)
    static let UIfont_h2_medium = UIFont.systemFont(ofSize: 18, weight: .medium)
    
    static let UIfont_body_regular = UIFont.systemFont(ofSize: 16, weight: .regular)
    static let UIfont_body_medium = UIFont.systemFont(ofSize: 16, weight: .medium)
    
    static let UIfont_description = UIFont.systemFont(ofSize: 14, weight: .regular)
    
    static let UIfont_footnote = UIFont.systemFont(ofSize: 12, weight: .regular)
    
    
    
    static let g_font_super_bold32 = Font(UIfont_super_bold)
    static let g_font_super_medium32 = Font(UIfont_super_medium)
    
    static let g_font_h1_regular20 = Font(UIfont_h1_regular)
    static let g_font_h1_medium20 = Font(UIfont_h1_medium)
    
    static let g_font_h2_regular18 = Font(UIfont_h2_regular)
    static let g_font_h2_medium18 = Font(UIfont_h2_medium)
    
    static let g_font_body_regular16 = Font(UIfont_body_regular)
    static let g_font_body_medium16 = Font(UIfont_body_medium)
    
    static let g_font_description_regular14 = Font(UIfont_description)
    
    static let g_font_footnote_regular12 = Font(UIfont_footnote)
}
